
package drinkkiosk.drinks;

import java.io.Serializable;
import java.util.LinkedList;

/**SpecialList
 * This class will return a special Drink.  It will return each of the special
 * Drinks for displaying on the GUI.  The special Drinks are drinks that
 * are chosen by the program depending on the temperature.
 * @author Charles Ritchea
 */
public class SpecialsList extends LinkedList implements Serializable {
	/**
	 * Default Constructor
	 */
	public SpecialsList() {
	}
        /**Adds a SpecialDrink to the list
         * @param special SpecialDrink to be added
         */
	public void addSpecial(SpecialDrink special){
		add(special);
	}
        /**Returns the SpecialDrink at index i in the list
	 * @param i int
	 * @return SpecialDrink 
         */
	public SpecialDrink getSpecial(int i){
		return (SpecialDrink)get(i);
	}
}
